package com.esri.core.map;

/* loaded from: classes.dex */
public enum ImageFormat {
    JPG_PNG("jpgpng"),
    PNG("png"),
    PNG8("png8"),
    PNG24("png24"),
    JPG("jpg"),
    BMP("bmp"),
    GIF("gif"),
    TIFF("tiff"),
    PNG32("png32");
    
    private final String a;

    ImageFormat(String str) {
        this.a = str;
    }

    @Override // java.lang.Enum
    public String toString() {
        return this.a;
    }

    public static ImageFormat fromString(String str) {
        ImageFormat[] values;
        if (str == null) {
            return null;
        }
        for (ImageFormat imageFormat : values()) {
            if (str.equals(imageFormat.a)) {
                return imageFormat;
            }
        }
        return null;
    }
}
